using Order.Api.Read.Application.Command;
using Order.Api.Read.Dto.Order;
using Order.ErrorCode;

namespace Order.Api.Read.Service.PrescriptionOrderService
{
    /// <summary>
    /// 处方订单服务接口
    /// </summary>
    public interface IPrescriptionOrderService
    {
        /// <summary>
        /// 获取处方订单分页数据
        /// </summary>
        /// <param name="command">分页查询命令</param>
        /// <returns>分页结果</returns>
        Task<ApiPageIng<PrescriptionOrderPageDto>> GetPrescriptionOrderPageAsync(PrescriptionOrderPageCommand command);

        /// <summary>
        /// 获取处方订单详情
        /// </summary>
        /// <param name="command">详情查询命令</param>
        /// <returns>处方订单详情</returns>
        Task<PrescriptionOrderDetailDto> GetPrescriptionOrderDetailAsync(PrescriptionOrderDetailCommand command);
    }
}